package service.Impl;

import dao.AddressBookOnlineMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import pojo.AddressBookOnline;

import javax.annotation.Resource;
import java.util.List;
@Transactional
@Service
public class AddressBookOnlineService implements AddressBookOnlineMapper {
    @Resource
    private AddressBookOnlineMapper addressBookOnlineMapper;

    @Override
    public List<AddressBookOnline> list() {
        return  addressBookOnlineMapper.list();
    }

    @Override
    public AddressBookOnline querid(int id) {
        return addressBookOnlineMapper.querid(id);
    }

    @Override
    public boolean add(AddressBookOnline addressBookOnline) {
        return addressBookOnlineMapper.add(addressBookOnline);
    }
}
